<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{$title|default="ThinkPHP bootstrap"}</title>
    <meta name="description" content="{$description|default=''}">
    {if isset($option['robots']) && $option['robots']==1}
    <meta name="robots" content="noindex,nofollow" />
    {/if}
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
        integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css"
        integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"
        integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"
        crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
        integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
        crossorigin="anonymous"></script>
</head>

<body>
    <!-- 导航 -->
    <nav class="navbar navbar-default navbar-static-top">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/" title="{$option['siteName']}">{if empty($option['logo'])}Brand{else /}<img width="20" height="20" src="{$option['logo']}" alt="{$option['siteName']}" />{/if}</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <!-- 导航 -->
                <ul class="nav navbar-nav">
                    <li {if $action=='index' } class="active" {/if}><a href="/">首页 <span
                                class="sr-only">(current)</span></a>
                    </li>
                    {volist name='navs' id='nav'}
                    {if isset($nav['children'])}
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                            aria-expanded="false">{$nav.name} <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            {volist name='nav["children"]' id='vo'}
                            <li {if $vo.id==$cate_id} class="active" {/if}><a href="{$vo.link}"
                                    title="{$vo.name}">{$vo.name}</a></li>
                            {/volist}
                        </ul>
                    </li>
                    {else /}
                    <li {if $nav.id==$cate_id} class="active" {/if}><a href="{$nav.link}"
                            title="{$nav.name}">{$nav.name}</a></li>
                    {/if}
                    {/volist}
                </ul>
                <!-- 搜索 -->
                <div class="nav navbar-nav navbar-right">
                    <li><a href="/admins/home/index/" title="控制台">控制台</a></li>
                </div>
                <form class="navbar-form navbar-right" action="/">
                    <div class="form-group">
                        <div class="input-group">
                            <input type="text" class="form-control" style="width: 15rem;" placeholder="搜索..."
                                name="search" value="{$search|default=''}" required="required" />
                            <span class="input-group-btn"><button type="submit" class="btn btn-default"><i
                                        class="glyphicon glyphicon-search"></i></button>
                            </span>
                        </div>
                    </div>
                </form>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>
    <!-- 面包屑 -->
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <ol class="breadcrumb">
                    {volist name='crumbs' id='vo'}
                    <li><a href="{if $i==count($crumbs)}javascript:;{else /}{$vo.link}{/if}" title="{$vo.name}" {if
                            $i==count($crumbs)} class="active" {/if}>{if $i==1}<span class="glyphicon glyphicon-home"
                                aria-hidden="true"></span>{/if} {$vo.name}</a></li>
                    {/volist}
                </ol>
            </div>
        </div>
    </div>